div{
    background:red;
  
    -webkit-transition:all 2s;
  
    -o-transition:all 2s;
  
    -moz-transition:all 2s;
  
    transition:all 2s;
    opacity: 0;
}